-- GENERATED SPELL FOR [Deathforged Infernal] --


function spell0_21316(pUnit, Event) --@Transform,Self--
pUnit:FullCastSpellOnTarget(36658,pUnit)
pUnit:RegisterEvent('Sorts_21316', 641, 1)
end

function Sorts_21316(pUnit, Event)
local choix_sorts_21316 = math.random(0, 0)
if choix_sorts_21316 == 0 then
pUnit:RegisterEvent('spell0_21316', 1, 1)
end
end

function mob21316_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21316', math.random(1500, 3000), 1)
end

function mob21316_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21316_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21316_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21316, 1, 'mob21316_Action')
RegisterUnitEvent(21316, 2, 'mob21316_Leave')
RegisterUnitEvent(21316, 3, 'mob21316_Kill')
RegisterUnitEvent(21316, 4, 'mob21316_Die')
